<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script>
    function round(x,y){
        var p=Math.pow(10,y);
        x = x * p;
        x  =Math.round(x);
        return x / p;
    }
    var k=round(17.5511,2);
    alert(k);
</script>
</body>
</html>